//
//  ZFGifDecoder.h
//  UITestPrj
//
//  Created by 赵梁 on 2016/11/9.
//  Copyright © 2016年 zify. All rights reserved.
//

#import <UIKit/UIKit.h>

@class ZFGifFrame;
@interface ZFGifDecoder : NSObject

@property (nonatomic, assign, readonly) NSUInteger loopCount;//!< 动画循环次数 ,0 means infinite (default is 0)

+ (instancetype)decoderWithGIFNamed:(NSString *)name;
+ (instancetype)decoderWithData:(NSData *)data;


/**
 获取gif文件的图片信息

 @return ZFGifFrame 的 NSArray
 */
- (NSArray<ZFGifFrame*> *)contentImages;

/**
 获取gif文件的图片信息

 @return image
 */
- (UIImage *)gifImage;

@end
